package com.hefantv.admin.domain.model;

import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

/**
* ${description}
* Created by AUTO on ${nowDate?string("yyyy/MM/dd")}.
*/
public class ${objectName}Model{
    /**
    * 主键ID
    */
    private Long id;

<#list modelColumns as item>

    /**
    *  ${attrRemarks[item_index]}
    */
    <#if item.attrType == "Date">
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    </#if>
    private ${item.attrType} ${item.attrName};

</#list>
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
<#list modelColumns as item>
    public ${item.attrType} get${item.attrNameUpper}() {
        return ${item.attrName};
    }

    public void set${item.attrNameUpper}(${item.attrType} ${item.attrName}) {
        this.${item.attrName} = ${item.attrName};
    }

</#list>
}